# -*- coding: utf-8 -*-
import sys
from PySide6.QtWidgets import (QMainWindow, QApplication, QTabWidget, QWidget, QVBoxLayout, )
from widgets.server_manage_widget import ServerManageWidget

class MainWindow(QMainWindow):
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.server_info = {}
        self.model_info = {}
        self.setWindowTitle("TRITON-SERVER-GUI")
        cener_w = QWidget()
        tab_widget = QTabWidget(cener_w)
        tab1 = ServerManageWidget(self)
        tab2 = QWidget(self)
        tab_widget.addTab(tab1, "服务管理")
        tab_widget.addTab(tab2, "模型管理")
        # layout = QVBoxLayout()
        # layout.addWidget(tab_widget)
        # cener_w.setLayout(layout)
        self.setCentralWidget(tab_widget)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    window = MainWindow()
    window.setFixedSize(800, 600)
    window.show()
    app.exec()